package com.qisi.pojo;


import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * MySQL 规则实体类
 */
@Data
public class Rule implements Serializable {
    private int id;
    private String name;
    private String exp;
    private Timestamp updateTime;
    private Timestamp createTime;
    private int isValid;
    private String appType;

    public Rule() {
        this.isValid = 0;
    }

    public Rule(int isValid) {
       this.isValid = isValid;
    }

    public boolean isValid(){
        return this.isValid == 1;
    }

}